#include <iostream>
#include <math.h>
using namespace std;
int main ()
{
    float a;
    int n,x=1;
    cout<<"A->";
    cin>>a;
    cout<<"N->";
    cin>>n;
    n=fabs(n);
    for (int i=1;i<=n;i++)
        x=x*a;
    cout<<"A^N="<<x;
    return 0;
}
